<?php

namespace Biz\model\springHomeDecActivity;

use Biz\pockets\modelTrait\BizModelTrait;
use Doraemon\pockets\datebase\BaseDbModel;

class VoteRecord extends BaseDbModel
{
    const _CONFIG_FILE_ = 'db_store';

    const _CONFIG_SELECT_ = 'db_brand_activity';

    const _DATABASE_ = 'brand_activity';
    
    const _TABLE_NAME = 'spring_home_dec_vote_record';
   

    //删除字段名称
    protected static $deleteField = 'data_status';
    
    
    use BizModelTrait;

    public static function addRecord($uid, $wish_id, $to_uid, $is_new_user, $brick_count)
    {
        $data = [
            'wish_id' => $wish_id,
            'uid' => $uid,
            'to_uid' => $to_uid,
            'is_new_user' => $is_new_user,
            'brick_count' => $brick_count,
            'vote_date' => date("Y-m-d"),
            'create_time' => date("Y-m-d H:i:s"),
            'data_status' => self::STATUS_NORMAL,
        ];
        return self::dataInsert($data);
    }
}
